home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kit PC World De Ampliacion De Windows 95
/
Kit PC World de ampliacion de Windows 95.iso
/
clarion
/
gauge
/
gauge.z
/
CWGAUGE1.CLW
< prev
next >
Wrap
Text File
|
1995-09-07
|
2KB
|
79 lines
MEMBER('CWGAUGE') ! This is a MEMBER module
ViewReadMe PROCEDURE
FileSize LONG
BytesThisRead LONG
BytesRead LONG
BytesThisCycle LONG
PercentProgress BYTE
Queue QUEUE
STRING(255)
END
File FILE,DRIVER('ASCII'),NAME('GAUGE.TXT')
RECORD,PRE()
String STRING(255)
END
END
Counter LONG
Report REPORT,AT(1000,1000,6500,9000),FONT('MS Serif',12,,FONT:regular),THOUS
Detail DETAIL,AT(,,,167)
STRING(@s255),AT(104,0),USE(Queue)
END
END
View WINDOW('About the TREE Application ...'),AT(,,329,236),FONT('MS Sans Serif',8,,FONT:bold),CENTER, |
IMM,SYSTEM,GRAY
LIST,AT(3,3,323,210),FONT('FixedSys',9,,FONT:regular),USE(?AsciiBox),VSCROLL,FROM(Queue)
BUTTON('&Print'),AT(219,218,35,),USE(?PrintView)
BUTTON('&Close'),AT(271,218,35,),USE(?CloseView)
END
CODE
OPEN(View)
DO FillQueue
DISPLAY
SELECT(?AsciiBox)
ACCEPT
CASE FIELD()
OF ?PrintView
CASE EVENT()
OF EVENT:Accepted
SETCURSOR(CURSOR:Wait)
Counter = 0
OPEN(Report)
LOOP
Counter += 1
IF Counter > RECORDS(Queue) THEN BREAK.
GET(Queue,Counter)
PRINT(Detail)
END
CLOSE(Report)
SETCURSOR
END
OF ?CloseView
POST(Event:CloseWindow)
END
END
CLOSE(View)
RETURN
FillQueue ROUTINE
IF RECORDS(Queue) = 0
OPEN(File,10h)
IF ~ERRORCODE()
SET(File)
LOOP UNTIL EOF(File)
NEXT(File)
IF ERRORCODE() THEN BREAK.
Queue = ' ' & File:String
ADD(Queue)
END
CLOSE(File)
ELSE
MESSAGE('The Read Me File Is Not Available',,ICON:Exclamation,BUTTON:OK)
RETURN
END
END